<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.eagle.utils.DateUtil"%>
<%@page import="java.util.Date"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@page import="com.eagle.utils.StrUtil"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>操作日志查询</title>
    <link href="<%=request.getContextPath()%>/css/main.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%=request.getContextPath()%>/js/common.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/dateCommon/WdatePicker.js"></script>
     <script language="JavaScript"> 
    //禁止刷新，回退 
    function onKeyDown() 
	 { 
		if ( (event.altKey) || ((event.keyCode == 8) && 
			(event.srcElement.type != "text" && 
			event.srcElement.type != "textarea" && 
			event.srcElement.type != "password")) || 
		   	((event.ctrlKey) && ((event.keyCode == 78) || (event.keyCode == 82)) ) || 
			(event.keyCode == 116) ) { 
 					event.keyCode = 0; 
 					event.returnValue = false; 
 			} 
 	 } 
      document.onkeydown = onKeyDown; 
     function stop(){ //这个是禁用鼠标右键 
		return false; 
	 } 
	 document.oncontextmenu=stop; 
 </script> 
    <script type="text/javascript">
    function serachQuery(num) {
		var startTimeflag = (checkCE(Trim(document.getElementById('start').value)) <= 0);
		var endTimeflag = (checkCE(Trim(document.getElementById('end').value)) <= 0);
		//提醒输入开始日期和结束日期
    
		if(startTimeflag == true){
			alert('时间范围开始日期不能为空');
			return false;
		}
		if(endTimeflag == true){
			alert('时间范围结束日期不能为空');
			return false;
		}	
		document.myform.action = "bankLogAction!getBankLog.action?pageNum="+num;
		document.myform.submit();
	}
    </script>
    </head>
   <body>
   <form id="myform" name="myform" method="post" action="">
		<table width="95%" cellpadding="0" cellspacing="0" border="1" class="table" align="center">
					<tr>
  			
               			 <td colspan="2">当前位置:&nbsp;银行业务&nbsp;&gt;&gt;&nbsp;操作日志查询 &gt;&gt;&nbsp;</td>
              		</tr>
  					<tr class="trBlackTitle">
  						 <td width="80%"><font style="font-weight:bold">查询条件</font></td>
  						 <td><input type="button" class="btn7" value="查询" onclick="serachQuery(1)"/></td>
  					</tr>
  				</table>
  				<table width="95%" cellpadding="5" cellspacing="1" border="0" align="center"> 
  					 <tr>
  					   <td class="td_label" width="8%">银行网点</td>
		 				  <td width="9%">
		 				  <select name="posid">
		 				  <option value="-1">请选择</option>
		 				  <s:iterator value="posOrgList" id="posorg">
		 				  <option value="<s:property value='#posorg.PosID'/>"  <s:if test="posid==#posorg.PosID">selected="selected"</s:if> >
		 				  <s:property value="#posorg.PosName"/></option>
		 				  </s:iterator>
		 				  </select>
		 		        </td>
					    <td class="td_label" width="8%">操作类型</td>
					    <td>
					    <select name="operType">
					    <option value="-1">请选择操作类型</option>
					     <option value="1"
  								<s:if test="operType == 1 ">selected</s:if>
  						>加密因子申请</option>
					    <option value="2"
  								<s:if test="operType == 2 ">selected</s:if>
  						>储值卡发行</option>
  						<option value="3"
  								<s:if test="operType == 3 ">selected</s:if>
  						>记账卡发行</option>
  						<option value="4"
  								<s:if test="operType == 4">selected</s:if>
  						>OBU发行</option>
  						<option value="5"
  						        <s:if test="operType == 5">selected</s:if>
  						>储值卡预充值</option>
  						<option value="6"
  						        <s:if test="operType == 6">selected</s:if>
  						>储值卡冲正</option>
  						<option value="7"
  						        <s:if test="operType == 7">selected</s:if>
  						>支付卡信息查询</option>
  						<option value="8"
  						        <s:if test="operType == 8">selected</s:if>
  						>支付卡圈存</option>
  						<option value="9"
  						        <s:if test="operType == 9">selected</s:if>
  						>支付卡圈提</option>
  						<option value="10"
  								<s:if test="operType == 10">selected</s:if>
  						>支付卡信息变更</option>
  						<option value="11"
  								<s:if test="operType == 11">selected</s:if>
  						>支付卡挂失</option>
  						<option value="12"
  								<s:if test="operType == 12">selected</s:if>
  						>支付卡解挂</option>
  						<option value="13"
  								<s:if test="operType == 13">selected</s:if>
  						>支付卡补发</option>
  						<option value="14"
  								<s:if test="operType == 14">selected</s:if>
  						>支付卡注销申请</option>
  						<option value="15"
  								<s:if test="operType == 15">selected</s:if>
  						>OBU信息变更</option>
  						<option value="16"
  								<s:if test="operType == 16">selected</s:if>
  						>OBU挂失</option>
  						<option value="17"
  								<s:if test="operType == 17">selected</s:if>
  						>OBU解挂</option>
  						<option value="18"
  								<s:if test="operType == 18">selected</s:if>
  						>OBU更换</option>
  						<option value="19"
  								<s:if test="operType == 19">selected</s:if>
  						>OBU注销</option>
  						<option value="20"
  								<s:if test="operType == 20">selected</s:if>
  						>记账卡使用状态变更</option>
  						<option value="21"
  								<s:if test="operType == 21">selected</s:if>
  						>记账卡消费划账扣款</option>
  						<option value="22"
  								<s:if test="operType == 22">selected</s:if>
  						>储值卡充值对账</option>
  						<option value="23"
  								<s:if test="operType == 23">selected</s:if>
  						>记账卡扣款日对账</option>
  						<option value="24"
  								<s:if test="operType == 24">selected</s:if>
  						>支付卡注销确认</option>
  						</select>
  						</td>
  							 <td class="td_label" width="8%">时间范围</td>
  						<td colspan="4" > 
  			 <%
   			 	Date start = (Date) request.getAttribute("beginTime");
   			 	String tempstart = "";
   			 	String tempend = "";
                //String s=DateUtil.getAddDays(DateUtil.getNowDate(),-31);
                 String s=DateUtil.getAddMonths(DateUtil.getNowDate(),-1);
   			 	   	if (start == null) {
   			             		tempstart = s;
   			             	} else {
   			             		tempstart = DateUtil.parseDateToString(start);
   			             	}

   			 	Date end = (Date) request.getAttribute("endTime");
   			 	if (end == null) {
   			 		tempend = DateUtil.getNowDate();
   			 	} else {
   			 		tempend = DateUtil.formatDate(end);
   			 	}
   			 %>
				<input id="start" name="beginTime" class="Wdate" value="<%=tempstart%>" type="text"
					onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'end\')||\'2020-10-01\'}'})"  />
				&nbsp;至&nbsp;
				<input id="end" name="endTime" class="Wdate" value="<%=tempend%>" type="text"
				onFocus="WdatePicker({minDate:'#F{$dp.$D(\'start\')}'})"  />
            </td>	
           
 					 </tr>
 		 </table>
  				<table width="95%"  cellpadding="0" cellspacing="0" align="center">
  					<tr class="trBlackTitle">
  						 <td width="80%"><font style="font-weight:bold">操作信息</font></td>
  					</tr>
  				</table>
		  		<table width="95%" cellpadding="5" cellspacing="1" border="0" align="center">
		  			<s:if test="logList!= null && logList.size()!=0">
		  			<tr class="trTitle">
		  				<td class="td_dashed1" width="11%">操作时间</td>
		  				<td class="td_dashed1" width="11%">操作类型</td>
		  				<td class="td_dashed1" width="11%">办理网点</td>
		  				<td class="td_dashed1" width="11%">办理终端</td>
		  				<td class="td_dashed1" width="11%">操作内容</td>
		  				<td class="td_dashed1" width="11%">操作结果</td>
		  			</tr>
		  			
		  			<s:iterator value="logList" id="posOp">
		  				<tr>
		  					<td nowrap><s:date name="#posOp.OperTime" format="yyyy-MM-dd HH:mm:ss" /></td>
		  					<td nowrap><s:if test="#posOp.OperType==1">加密因子申请</s:if>
		  					<s:if test="#posOp.OperType==2">储值卡发行</s:if>
		  					<s:if test="#posOp.OperType==3">记账卡发行</s:if>
		  					<s:if test="#posOp.OperType==4">OBU发行</s:if>
		  					<s:if test="#posOp.OperType==5">储值卡预充值</s:if>
		  					<s:if test="#posOp.OperType==6">储值卡冲正</s:if>
		  					<s:if test="#posOp.OperType==7">支付卡信息查询</s:if>
		  					<s:if test="#posOp.OperType==8">支付卡圈存</s:if>
		  					<s:if test="#posOp.OperType==9">支付卡圈提</s:if>
		  					<s:if test="#posOp.OperType==10">支付卡信息变更</s:if>
		  					<s:if test="#posOp.OperType==11">支付卡挂失</s:if>
		  					<s:if test="#posOp.OperType==12">支付卡解挂</s:if>
		  					<s:if test="#posOp.OperType==13">支付卡补发</s:if>
		  					<s:if test="#posOp.OperType==14">支付卡注销申请</s:if>
		  					<s:if test="#posOp.OperType==15">OBU信息变更</s:if>
		  					<s:if test="#posOp.OperType==16">OBU挂失</s:if>
		  					<s:if test="#posOp.OperType==17">OBU解挂</s:if>
		  					<s:if test="#posOp.OperType==18">OBU更换</s:if>
		  					<s:if test="#posOp.OperType==19">OBU注销</s:if>
		  					<s:if test="#posOp.OperType==20">记账卡使用状态变更</s:if>
		  					<s:if test="#posOp.OperType==21">记账卡消费划账扣款</s:if>
		  					<s:if test="#posOp.OperType==22">储值卡充值对账</s:if>
		  					<s:if test="#posOp.OperType==23">记账卡扣款日对账</s:if>
		  					<s:if test="#posOp.OperType==24">支付卡注销确认</s:if>
		  					</td>
		  					<td nowrap><s:property value="#posOp.PosName"/></td>
		  					<td nowrap><s:property value="#posOp.TerminalID"/></td>
		  					<td><s:property value="#posOp.Content"/></td>
		  					<td nowrap>
		  					<s:if test="#posOp.Result==0">失败</s:if>
		  					<s:else>成功</s:else>
		  					</td>
		 				</tr>
		  			</s:iterator>
		  			 <tr>
		  			   <td colspan=6 align="center"><s:property value="str_pageInfor" escape="false"/></td>
					</tr>
		            </s:if>	
		            <s:elseif test="logList.size()==0">
						<tr>
							<td colspan="10"><div align="center">&nbsp;&nbsp;&nbsp;<font color="red">无操作信息</font></div></td>
						</tr>
					</s:elseif>
		 		</table>
	
  	</form>
  </body>
</html>
